Cocktail Help Reference
Remove Method
See Also  Send Feedback
Cocktail Assembly > Cocktail Namespace > WeakRefDictionary<TKey,TValue> Class : Remove Method



key
The key of the item to be removed.

Glossary Item Box

Removes an item from the dictionary.

Syntax

Visual Basic (Declaration) 
Public Function Remove( _
   ByVal key As TKey _
) As Boolean
Visual Basic (Usage)Copy Code
Dim instance As WeakRefDictionary(Of TKey,TValue)
Dim key As TKey
Dim value As Boolean
 
value = instance.Remove(key)
C# 
public bool Remove( 
   TKey key
)
C++/CLI 
public:
bool Remove( 
   TKey^ key
) 

Parameters

key
The key of the item to be removed.

Return Value

Returns true if the key was in the dictionary; return false otherwise.

Requirements

Target Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family

See Also

© 2012 All Rights Reserved.